package com.example.yunxiappbackend.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 负责前台用户登录以后的各种跳转
 */
@Controller
@RequestMapping("/mainPage")
@Slf4j
public class MainPageController {
    @RequestMapping("/")
    public String toMainPage(){
        return "mainPage";
    }
    @RequestMapping("/zhuye")
    public String toZhuye(){
        return "zhuye";
    }
    @RequestMapping("/fenxi")
    public String toFenxi(){
        return "fenxi";
    }
    @RequestMapping("/xiaoxi")
    public String toXioaxi() {
        return "xiaoxi";
    }
    @RequestMapping("/wode")
    public String toWode(){
        return "wode";
    }

    @RequestMapping("/fenxiDetail")
    public String toFenxiDetail(){
        return "fenxiDetail";
    }
    @RequestMapping("/articleDetail")
    public String toArticleDetail(){
        return "articleDetail";
    }
//    @RequestMapping("/messageBox")
//    public String toMessageBox(){
//        return "messageBox";
//    }
}
